Skip to content

Conversation

@DrAsu33
Copy link

@DrAsu33 DrAsu33 commented Nov 24, 2025

No description provided.

Handle zero-sized types (ZST) to prevent unalignment issues when dropping elements.
Test that Intolter::nth_back does not cause UB for ZSTs with high alignment.
@rustbot
Copy link
Collaborator

rustbot commented Nov 24, 2025

This PR modifies tests/ui/issues/. If this PR is adding new tests to tests/ui/issues/,
please refrain from doing so, and instead add it to more descriptive subdirectories.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 24, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 24, 2025

r? @fee1-dead

rustbot has assigned @fee1-dead.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

This comment has been minimized.

Fix incorrect usage of step_size in pointer creation for ZST.
@rust-log-analyzer

This comment has been minimized.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the file name needs to be changed.

https://rustc-dev-guide.rust-lang.org/tests/best-practices.html#test-naming

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using the issues directory, please refer to this and choose a more appropriate location.

@@ -0,0 +1,9 @@
// check-pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// check-pass
//@ check-pass

@rust-log-analyzer

This comment has been minimized.

@Kivooeo
Copy link
Member

Kivooeo commented Nov 24, 2025

r? libs

@rustbot rustbot assigned Mark-Simulacrum and unassigned fee1-dead Nov 24, 2025
@Kivooeo Kivooeo added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 24, 2025
@DrAsu33
Copy link
Author

DrAsu33 commented Nov 25, 2025

@reddevilmidzy Thanks! Updated as requested.

@rust-log-analyzer

This comment has been minimized.

Copy link
Contributor

@reddevilmidzy reddevilmidzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and please squash

View changes since this review

Comment on lines 1 to 2
// @ check-pass
//test Intolter::nth_back does not cause UB for ZSTs with high alignment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove leading spaces from commands, and add a space before comments.

Suggested change
// @ check-pass
//test Intolter::nth_back does not cause UB for ZSTs with high alignment
//@ check-pass
// test Intolter::nth_back does not cause UB for ZSTs with high alignment

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!It seems that all the CI tests are passed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using the issues directory, please refer to this and choose a more appropriate location.

Co-authored-by: Yukang <moorekang@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants